﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace Domain
{
    public class InfoTemplate
    {
        public TextItem[] Items { get; set; }
        public float Width { get; set; }
        public float Height { get; set; }
    }

    public class TextItem
    {
        public string FieldName { get; set; }
        public string Text { get; set; }
        public int FontId { get; set; }
        public float Size { get; set; }
        public string Color { get; set; }
        public TextAlign Align { get; set; }
        public TextStyle Style { get; set; }
        public CMYKColor CMYK { get; set; }
        public int MaxLength { get; set; }
    }

    public class TextAlign
    {
        public float X { get; set; }
        public float Y { get; set; }
        public string Halign { get; set; }
        public string GrowTo { get; set; }
    }

    public class TextStyle
    {
        public bool Bold { get; set; }
        public bool Italic { get; set; }
        public bool Underline { get; set; }
    }

    public static class GrowToType
    {
        public static readonly string LEFT = "left";
        public static readonly string RIGHT = "right";
        public static readonly string MIDDLE = "middle";
    }

    public static class HalignType
    {
        public static readonly string ABSOLUTE = "abs";
        public static readonly string CENTER = "center";
    }

    public class CMYKColor
    {
        public short C { get; set; }
        public short M { get; set; }
        public short Y { get; set; }
        public short K { get; set; }
    }

    
}
